<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>车辆列表-添加新的车辆</title>
        <link href="/electriccar/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
        <script language="JavaScript" src="/electriccar/Public/admin/js/jquery.js"></script>

        <link href="/electriccar/Public/validform/Validform.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/electriccar/Public/validform/Validform_v5.3.2.js"></script>
        <script type="text/javascript" src="/electriccar/Public/validform/Validform_Datatype.js"></script>

        <link href="/electriccar/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/electriccar/Public/admin/js/jquery.idTabs.min.js"></script>
        <script type="text/javascript" src="/electriccar/Public/admin/js/select-ui.min.js"></script>

        <script type="text/javascript" src="/electriccar/Public/My97DatePicker/WdatePicker.js"></script>
        <script type="text/javascript">
            $(document).ready(function (e) {
                $("#red_type").uedSelect({
                    width: 150
                });
            });

            //营销型红包展示更多选项
            function showmore(v) {
                if (v == "3") {
                    $("[id^='more_li_']").show();
                    $("#red_count").val("");
                    $("#red_money").val("");
                } else {
                    $("[id^='more_li_']").hide();
                    $("#red_count").val("0");
                    $("#red_money").val("0");
                }
            }
        </script>
    </head>

    <body>

        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="<?php echo U('index/index');?>">首页</a></li>
                <li><a href="<?php echo U('vehicle/index');?>">车辆列表</a></li>
                <li><a href="#">添加车辆</a></li>
            </ul>
        </div>

        <div class="formbody">

            <div class="formtitle"><span>添加车辆</span></div>

            <form name="myform" id="myform" action="<?php echo U('vehicle/add');?>" method="post">
                <ul class="forminfo"> 
                    <li><label>车辆USIM</label><input name="info[usim]" id="username" type="text" class="dfinput" ajaxurl="<?php echo U('vehicle/existusim');?>" datatype="phone" errormsg="车辆USIM请认真填写！" maxlength="20" /><i class="Validform_checktip"></i></li> 
                    <li><label>&nbsp;</label><input name="btn" type="submit" class="btn" value="确认保存"/></li>
                </ul>
            </form>

        </div>

        <script>
            $(function () {
                $("#myform").Validform({
                    //tiptype:2
                    tiptype: function (msg, o, cssctl) {
                        var objtip = o.obj.siblings(".Validform_checktip");
                        cssctl(objtip, o.type);
                        objtip.text(msg);
                    }
                });
            });
        </script>
    </body>

</html>